package org.apache.ibatis.demo.decorationTest2;

/**
 * @Date 2021/2/21 18:01
 * @Created mobian
 * @Description
 */
public class ScoreDecoration2 extends AbstractScoreDecoration {
  IScoreRepo delegate;
  public ScoreDecoration2() {
  }

  public ScoreDecoration2(IScoreRepo delegate) {
    this.delegate = delegate;
  }

  public void showScoreResult(){
    delegate.showScoreResult();
    System.out.println("对成绩进行第二次修饰");

  }
}
